Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Batching #1570

Closed
wants to merge 2 commits into from
Closed

WIP: Batching #1570

wants to merge 2 commits into from

Conversation

tzaffi
Copy link
Contributor

@tzaffi tzaffi commented Aug 29, 2023

Working off a local branch as it's bit easier to test with it.

dangling = true
intra += innerTxnTreeSize(&payset[index].SignedTxnWithAD)
index++
if intra >= leftIntra + batchMinSize {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [Lint Errors] reported by reviewdog 🐶
File is not gci-ed with --skip-generated -s standard -s default -s prefix(github.com/algorand) -s prefix(github.com/algorand/go-algorand) (gci)

return nil
}

type IndexAndIntra struct {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [Lint Errors] reported by reviewdog 🐶
exported: exported type IndexAndIntra should have comment or be unexported (revive)

// // st := time.Now()
// // errs0 = loadTransactionsW(db, size, &block)
// // db.log.Infof("Round %d AddTransactions(total): %d", vb.Block.Round, time.Since(st).Microseconds())
// } else

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [Lint Errors] reported by reviewdog 🐶
File is not gci-ed with --skip-generated -s standard -s default -s prefix(github.com/algorand) -s prefix(github.com/algorand/go-algorand) (gci)

}

cr := &CountingReader{r: reader}
var cb types.BlockData

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [Lint Errors] reported by reviewdog 🐶
undefined: types.BlockData) (typecheck)

}

cr := &CountingReader{r: reader}
var cb types.BlockData

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [Lint Errors] reported by reviewdog 🐶
undefined: types.BlockData) (typecheck)

// // db.log.Infof("Round %d AddTransactions(total): %d", vb.Block.Round, time.Since(st).Microseconds())
// } else
// if useExperimentalWithIntraBugfix {
st := time.Now()

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [Lint Errors] reported by reviewdog 🐶
File is not gci-ed with --skip-generated -s standard -s default -s prefix(github.com/algorand) -s prefix(github.com/algorand/go-algorand) (gci)


// if useExperimentalTxnInsertion || useExperimentalWithIntraBugfix {
// if useExperimentalWithIntraBugfix {
for _, errItem := range errs0 {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [Lint Errors] reported by reviewdog 🐶
File is not gci-ed with --skip-generated -s standard -s default -s prefix(github.com/algorand) -s prefix(github.com/algorand/go-algorand) (gci)

return SetupGnomockPgWithVersion(t, "13-alpine")
}

func SetupGnomockPgWithVersion(t testing.TB, pgImage string) (*pgxpool.Pool, string, func()) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [Lint Errors] reported by reviewdog 🐶
exported: exported function SetupGnomockPgWithVersion should have comment or be unexported (revive)

// if maxConns != nil {
// config.MaxConns = *maxConns
// }

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [Lint Errors] reported by reviewdog 🐶
File is not gci-ed with --skip-generated -s standard -s default -s prefix(github.com/algorand) -s prefix(github.com/algorand/go-algorand) (gci)

}, cr.n, nil
}


Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [Lint Errors] reported by reviewdog 🐶
File is not gci-ed with --skip-generated -s standard -s default -s prefix(github.com/algorand) -s prefix(github.com/algorand/go-algorand) (gci)

return openPostgres(db, opts, log)
if tuning == nil {
tuning = &TuningParams{
PgxOpts: serializable,
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [Lint Errors] reported by reviewdog 🐶
File is not gci-ed with --skip-generated -s standard -s default -s prefix(github.com/algorand) -s prefix(github.com/algorand/go-algorand) (gci)

idb/postgres/indexerDb.go Show resolved Hide resolved
// TODO: change this to pgs.ReadCommitted
// var uncommitted = pgx.TxOptions{IsoLevel: pgx.ReadUncommitted}


Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [Lint Errors] reported by reviewdog 🐶
File is not gci-ed with --skip-generated -s standard -s default -s prefix(github.com/algorand) -s prefix(github.com/algorand/go-algorand) (gci)

}

// defaultTuningParams returns a TuningParams object with default values.
func defaultTuningParams() TuningParams{
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [Lint Errors] reported by reviewdog 🐶
File is not gci-ed with --skip-generated -s standard -s default -s prefix(github.com/algorand) -s prefix(github.com/algorand/go-algorand) (gci)

default:
return fmt.Sprintf("unknown_%s", isoLevel)
}
}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [Lint Errors] reported by reviewdog 🐶
File is not gci-ed with --skip-generated -s standard -s default -s prefix(github.com/algorand) -s prefix(github.com/algorand/go-algorand) (gci)

@gmalouf gmalouf closed this May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants